package ${configure.packageName}.${generatorTable.moudleName}.model.${generatorTable.fileDirName};

import com.baomidou.mybatisplus.annotation.TableName;
<#if generatorTable.modelInherits == "BaseBean">
import com.cyys.common.model.BaseBean;
</#if>
<#if generatorTable.modelInherits == "CoreUserBean">
import com.cyys.modules.core.model.CoreUserBean;
</#if>
<#if generatorTable.modelInherits == "CoreBean">
import com.cyys.modules.core.model.CoreBean;
</#if>
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.cyys.common.utils.StringUtil;
import com.cyys.modules.core.sysParam.ParamBasicUtil;
import com.cyys.modules.core.sysParam.ParamConstants;

import java.math.BigDecimal;
import java.util.Date;

/**
* @description ${generatorTable.tableCommen!""}
* @author ${configure.authorName}
* @date ${.now?string('yyyy-MM-dd')}
*/
@Data
@TableName("${generatorTable.tableName}")
public class ${generatorTable.upperClassName} extends ${generatorTable.modelInherits} {


<#if generatorTable.fieldList?exists && generatorTable.fieldList?size gt 0>
	<#list generatorTable.fieldList as fieldItem >
		<#if fieldItem.fieldName != 'id' && fieldItem.fieldName != 'dateCreate'
			&& fieldItem.fieldName != 'dateUpdate' && fieldItem.fieldName != 'isDelete'
			&& fieldItem.fieldName != 'userId'>
	private ${fieldItem.fieldType} ${fieldItem.fieldName}; //${fieldItem.columnComment!""}
			<#if fieldItem.paramName?exists && fieldItem.paramName?length gt 0>
	@JsonIgnore
	public String get${fieldItem.fieldName?cap_first}Name() {
		if(StringUtil.isNotBlank(${fieldItem.fieldName}))
			return ParamBasicUtil.getParamBasicTypeMap().get(ParamConstants.${fieldItem.paramName}).get(${fieldItem.fieldName});
		return "";
	}

			</#if>
		</#if>
	</#list>
</#if>

}
